home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 127 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: phoenix.rhein.de!yaps!arno
  2. From: arno@yaps.rhein.de (Arno Eigenwillig)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Message-ID: <NBuTx*LVe@yaps.rhein.de>
  6. Date: Wed, 03 Jan 1996 06:55:45 +0100
  7. References: <john.hendrikx.40ka@grafix.xs4all.nl> <0u2Px*sKe@yaps.rhein.de>
  8.  <CWoRx*xQe@yaps.rhein.de> <4c9ie3$h3i@sunsystem5.informatik.tu-muenchen.de>
  9. Organization: Yet Another Private Site in Meckenheim, Germany
  10. X-Copyright: This article may not be distributed on a CD-ROM
  11.  or in printed form without prior written consent of the author.
  12. X-Newsreader: Arn V 1.04
  13.  
  14. In article <4c9ie3$h3i@sunsystem5.informatik.tu-muenchen.de>,
  15.      Juergen "Rally" Fischer writes:
  16.  
  17. > as it is a rather philosophic question if (*a++||*a++) is C or not,
  18.  
  19. *a++||*a++ is C beyond any doubt. The discussion was about *a++|*a++,
  20. though. I see you still have not done your homework. There is an
  21. important difference between these two.
  22.  
  23. > According to your definition, a program written in C, but containing a
  24. > bug, is suddenly not a C program. very funny, and as I said, philosophic.
  25.  
  26. There are different kinds of bugs.
  27.  
  28. A program has a bug if it performs a well-defined operation that is
  29. not sensible in its context, i.e. an operation that is explained by
  30. the language definition but is not what the algorithm to be implemen-
  31. ted dictates for the place it appears in. This is what you probably
  32. have in mind.
  33.  
  34. Then a program has a bug if it contains code that is not explained by
  35. the language definition. This is probably new to you because in assem-
  36. bler there is no equivalent to it - if the assembler translates the
  37. code, the CPU will execute it and each opcode will yield a well-defi-
  38. ned result - possibly an "unknown instruction" trap, but well-defined.
  39.  
  40. The situation is similar to this:
  41.  
  42. "Juergen likes C."
  43. "Juergen green vacuums foremost done foo."
  44.  
  45. Both sentences are not true - the first one because it simply is
  46. false, the second one because it does not mean anything at all. It is
  47. not an English sentence: It consists of English words, but it just is
  48. not a string the English language defines to encode anything.
  49.  
  50. -- __
  51. __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/  PGP key
  52. \XX/   V+49-2225-5870  /\ <Arnooo @ #amigager> \/ available
  53.